package com.wm.bean;

import java.io.*;
import java.util.Date;
import java.util.List;

import com.sina.sae.storage.SaeStorage;

public class Restaurant implements Serializable {
	private static final long serialVersionUID = 3938860373226088110L;

	private long id; // 主键ID
	private String resName; // 饭店名称
	private String resInitials; // 首字母
	private String resAnglic; // 饭店的简拼
	private String resPhonetic; // 饭店的全拼
	private String resTaste; // 饭店口味 0:没有分类 1:中式 2:西式 3:港式
	private int isCatenation; // 是否连锁 0:非连锁 1:连锁
	private int deliveryPrice; // 起送价
	private String specialMemo; // 特殊说明
	private String summary; // 饭店简介
	private String address; // 地址
	private int distance; // 距离
	private String notice; // 饭店公告
	private String salesPromotion; // 促销信息
	private int score; // 评分
	private int scorePeople; // 平分人数
	private int valid; // 是否有效,审核使用 0:未申核 1:己申核 2:黑名单
	private int isShow; // 是否显示
	private long showTime; // 显示时间
	private int orderNum; // 排序字段
	private Date orderTime; // 排序时间
	private Date addTime; // 添加时间
	private int deliverTime; // 送达时间
	private String phone; // 联系电话
	private String phone2; // 联系电话2

	private String shopkeeperName; // 店主姓名
	private String qq; // QQ
	private String webKey; // 网站key
	private double pointX; // 百度的X坐标
	private double pointY; // 百度的y坐标
	
	private int isCollect; // 是否已被用户收藏
	private List timeList; // 营业时间
	private int isBusiness; // 是否营业0否1是

	private String logo; // logo
	private String logoPath; // logo地址

	public double getPointX() {
		return pointX;
	}

	public void setPointX(double pointX) {
		this.pointX = pointX;
	}

	public double getPointY() {
		return pointY;
	}

	public void setPointY(double pointY) {
		this.pointY = pointY;
	}

	public int getIsBusiness() {
		return isBusiness;
	}

	public void setIsBusiness(int isBusiness) {
		this.isBusiness = isBusiness;
	}

	public List getTimeList() {
		return timeList;
	}

	public void setTimeList(List timeList) {
		this.timeList = timeList;
	}

	public int getIsCollect() {
		return isCollect;
	}

	public void setIsCollect(int isCollect) {
		this.isCollect = isCollect;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPhone2() {
		return phone2;
	}

	public void setPhone2(String phone2) {
		this.phone2 = phone2;
	}

	public int getDeliverTime() {
		return deliverTime;
	}

	public void setDeliverTime(int deliverTime) {
		this.deliverTime = deliverTime;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	public String getResInitials() {
		return resInitials;
	}

	public void setResInitials(String resInitials) {
		this.resInitials = resInitials;
	}

	public String getResAnglic() {
		return resAnglic;
	}

	public void setResAnglic(String resAnglic) {
		this.resAnglic = resAnglic;
	}

	public String getResPhonetic() {
		return resPhonetic;
	}

	public void setResPhonetic(String resPhonetic) {
		this.resPhonetic = resPhonetic;
	}

	public String getResTaste() {
		return resTaste;
	}

	public void setResTaste(String resTaste) {
		this.resTaste = resTaste;
	}

	public int getIsCatenation() {
		return isCatenation;
	}

	public void setIsCatenation(int isCatenation) {
		this.isCatenation = isCatenation;
	}

	public int getDeliveryPrice() {
		return deliveryPrice;
	}

	public void setDeliveryPrice(int deliveryPrice) {
		this.deliveryPrice = deliveryPrice;
	}

	public String getSpecialMemo() {
		return specialMemo;
	}

	public void setSpecialMemo(String specialMemo) {
		this.specialMemo = specialMemo;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getDistance() {
		return distance;
	}

	public void setDistance(int distance) {
		this.distance = distance;
	}

	public String getNotice() {
		return notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	public String getSalesPromotion() {
		return salesPromotion;
	}

	public void setSalesPromotion(String salesPromotion) {
		this.salesPromotion = salesPromotion;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getScorePeople() {
		return scorePeople;
	}

	public void setScorePeople(int scorePeople) {
		this.scorePeople = scorePeople;
	}

	public int getValid() {
		return valid;
	}

	public void setValid(int valid) {
		this.valid = valid;
	}

	public int getIsShow() {
		return isShow;
	}

	public void setIsShow(int isShow) {
		this.isShow = isShow;
	}

	public long getShowTime() {
		return showTime;
	}

	public void setShowTime(long showTime) {
		this.showTime = showTime;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getLogoPath() {
		SaeStorage ss = new SaeStorage();// 使用Storage存储
		logoPath = ss.getUrl("image", this.id + ".jpg");
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public String getShopkeeperName() {
		return shopkeeperName;
	}

	public void setShopkeeperName(String shopkeeperName) {
		this.shopkeeperName = shopkeeperName;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWebKey() {
		return webKey;
	}

	public void setWebKey(String webKey) {
		this.webKey = webKey;
	}
}
